package com.central.rearService.service

import com.central.common.entity.Like
import com.central.common.enum.LikeTypeEnum
import com.central.common.model.CommonResult
import com.central.common.model.RealDataResult
import com.central.common.model.SysUser
import com.central.common.service.ISuperService

/**
 * @author  fly
 * @date  2021/5/26 14:50
 * @version 1.0
 */
interface LikeService : ISuperService<Like> {


    fun resolveLike(likeId: Long, sysUser: SysUser, likeType: Int): CommonResult<Boolean>

    fun getLikeNum(likeId: Long, likeTypeEnum: LikeTypeEnum): RealDataResult

    fun booleanLike(likeId: Long, userId: Long, likeTypeEnum: LikeTypeEnum): RealDataResult
}
